package academia.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.SystemColor;
import javax.swing.JLabel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.SwingConstants;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class DadosAlterados extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					DadosAlterados frame = new DadosAlterados();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public DadosAlterados() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 273, 154);
		contentPane = new JPanel();
		contentPane.setBackground(SystemColor.inactiveCaptionBorder);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblOsDadosForam = DefaultComponentFactory.getInstance().createLabel("Os dados foram alterados com sucesso ");
		lblOsDadosForam.setFont(new Font("Dialog", Font.BOLD, 11));
		lblOsDadosForam.setForeground(Color.GREEN);
		lblOsDadosForam.setHorizontalAlignment(SwingConstants.CENTER);
		lblOsDadosForam.setBounds(10, 0, 237, 54);
		contentPane.add(lblOsDadosForam);
		
		JButton btnMenu = new JButton("Menu");
		btnMenu.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new MenuRoot().setVisible(true);
				dispose();
			}
		});
		btnMenu.setBounds(10, 82, 89, 23);
		contentPane.add(btnMenu);
		
		JButton btnBuscar = new JButton("Buscar ");
		btnBuscar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				new TelaBusca().setVisible(true);
				dispose();
			}
		});
		btnBuscar.setBounds(158, 82, 89, 23);
		contentPane.add(btnBuscar);
	}
}
